<?php

/**
 *
 * @author Mohamed Asfer<asfer@webgurus.lk>
 */

spl_autoload_register(function ($sClass) {

	if (strpos($sClass, 'AiSPRDocManager\\') === 0) {

		$sClassPath = str_replace('\\', '/', str_replace('AiSPRDocManager\\', '', $sClass)) . '.php';
		$sFullClassPath = dirname(__FILE__) . '/src/' . $sClassPath;

		if (is_file($sFullClassPath)) {
			require_once $sFullClassPath;
		}

	}


});
?>